<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>{$item.title}</title>
  <meta name="viewport" content="initial-scale=1, maximum-scale=1">
  <link rel="shortcut icon" href="/favicon.ico">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <link type="text/css" rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.5.4/css/sm.min.css">
  <link type="text/css" rel="stylesheet" href="http://g.alicdn.com/msui/sm/0.5.4/css/sm-extend.min.css">
  <link type="text/css" rel="stylesheet" href="__PUBLIC__/user/shop/css/shop.css?v=1">
</head>
<body>
<div class="page theme-diy" id="page-index">
  <div class="content infinite-scroll" data-distance="100">
    <div class="shop_item">
        <div class="item_top_bar">
            <div class="item_pic_bar">
            <img src="{$item.litpic}" alt="">
            </div>
            <div class="item_title_bar">
                <div class="wp"><h2>{$item.title}</h2></div>
            </div>
            <div class="item_suk_bar">
              <div class="wp">
              <div class="item_suk ">
                <div class="row no-gutter">
                  <div class="col-40">商品价格</div>
                  <div class="col-40">推荐提成</div>
                  <div class="col-20">库存</div>
    
                  <?php foreach ($item['suk'] as $v): ?>
                  <div class="col-40">{$v.name}:{$v.price}</div>
                  <div class="col-40">{$v.ticheng}</div>
                  <div class="col-20">{$v.kc}</div>
                  <?php endforeach;?>
                </div>
              </div>
              <div class="item_but_bar">
              <p class="buttons-row"><a href="#tuwen" class="button external">图文推荐</a><a href="#rw" class="button external">软文推荐</a><a href="{:get_item_url($item['id'])}" class="button external">快速下单</a></p>
              </div>
              </div>
             </div>
        </div>

         <div class="tuwen" id="tuwen">
                <div class="tuweb_but_bar wp">
                    <div style="height:1.5rem;"></div>
                    <a href="#" class="button button-big ff1_but clear">方法① 图文朋友圈推荐</a>
                    <span class="ff1_info clear">PS:为了更好的引导好友阅读和下单,建议分享朋友圈时请点击复制文章,并且保存主图到手机发朋友圈,图文朋友圈的效果会更加好,每天一条切忽刷屏!</span>
                </div>
         <div class="tuwen_info_bar">
              <?php $tuwen= json_decode($item['tuwen'],true);?>
              <?php foreach ($tuwen as $key=>$v): ?>
              <div class="tuwen_info tuwen_info<?php echo $key; ?> clear">
                     <table class="tuwen_bar">
                         <tr>
                             <td class="xuhao"><?php echo $key; ?></td>
                             <td class="text">{$v.title}</td>
                             <td class="copy">长按复制</td>
                         </tr>
                     </table>
                     <div class="list_pic list_pic1">
                          <div class="text left">点击查看并保存商品素材</div>
                          <ul class="pic_bar right">
                                <?php $v['listpic']= explode(',', $v['listpic']);?>
                                <?php foreach ($v['listpic'] as $key=>$v):?>
                                 <?php $key++; if($key<=7){?> 
                                <li><img src="<?php echo $v;?>" alt=""></li>
                                <?php }?>
                                <?php endforeach;?> 
                                <!--推广二维码-->
                                <li><img src="/User/qrcode?url={:U('/Shop/buy',array('id'=>$item['id']))}" ></li>

                          </ul>
                     </div>
              </div>

           <?php endforeach;?>

 


         </div>

<div class="rw wp" id="rw">
<a href="#" class="button button-big ff1_but clear">方法② 专属图文下单链接</a>

 
 <?php foreach ($news as $key => $v):?>
  <div class="card">
    <div class="card-content">
      <div class="list-block media-list">
        <ul>
          <li class="item-content">
            <div class="item-media">
              <img src="{$v.litpic}" width="44">
            </div>
            <div class="item-inner">
              <div class="item-title-row">
                <div class="item-title" style="color:#000">{$v['title']}</div>

              </div>
              <a href="{:get_item_url($item['id'],$v['id'])}" class="item-subtitle right button button-warning external" style=" font-size:.6rem; height:1rem; line-height:1rem; margin-top:5px;">
                    分享
              </a>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>            

<?php endforeach;?>




</div>


</div>

 

 <div style="height:2rem;"></div>


      </div>
</div>     
 
<nav class="bar bar-tab">
   <div class="wp">
     <a class="button button-link button-nav pull-left back" href="/demos">
      <span class="icon icon-left"></span>
      返回
     </a>
   </div>
</nav>
 
</div>
</body>
<script type='text/javascript' src='http://g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
<script type='text/javascript' src='http://g.alicdn.com/msui/sm/0.5.4/js/sm.min.js' charset='utf-8'></script>
<script type='text/javascript' src='http://g.alicdn.com/msui/sm/0.5.4/js/sm-extend.min.js' charset='utf-8'></script>
<script type='text/javascript' src='__PUBLIC__/user/shop/js/shop.js' charset='utf-8'></script>
</html>